<template>
  <view>
    <cu-custom :bgColor="'bg-' + theme.backgroundColor" :isBack="true">
      <block slot="backText">返回</block>
      <block slot="content">识别二维码</block>
    </cu-custom>
    <view class="isok">
      <view class="img-box">
        <image src="../../static/isOk.png" mode="scaleToFill" />
        <view>处方单提交成功</view>
      </view>
      <view class="bottom">
        <!-- <view class="btn details" @tap="goDetails">查看详情</view> -->
        <view class="btn back" @tap="goBack">返回</view>
      </view>
    </view>
  </view>
</template>
<script>
const app = getApp();
export default {
  data() {
    return {
      presList: [],
      theme: app.globalData.theme, //全局颜色变量
    };
  },
  onLoad(options) {},

  methods: {
    goBack(){
        uni.navigateBack({ delta: 2 })
    },
    goDetails(item) {
      uni.setStorageSync("hospitalObj", item);
      this.$goUrl("/pages_code/pages/details/index");
    },
  },
};
</script>
<style lang="scss" scoped>
.img-box {
  width: 200rpx;
  height: 200rpx;
  margin: 0 auto 32rpx;
  image {
    width: 100%;
    height: 100%;
  }
}
.isok {
  margin: 220rpx auto;
}
.bottom {
  padding: 0 64rpx;
  margin-top: 128rpx;
}
.btn {
  margin-bottom: 32rpx;
  border-radius: 50rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32rpx 0;
}
.details {
  background-color: #406cff;
  color: #fff;
}
.back {
  border: 2rpx solid #00000025;
}
</style>
